home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / base_shot.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  5.8 KB  |  228 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_BASESHOT)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. desc.LocalPosition = D3DXVECTOR3:new(0,0,0)
  9. desc.isAnimateTexture = false
  10. desc.RenderType = ENRENDERTYPE_GEOMETRY
  11.  
  12. Emitter = desc.PS.PSDescription
  13. Emitter.ParticleTypesNumber = 2
  14. Emitter.EmitterPosition = D3DXVECTOR3:new(0,0,0)
  15. Emitter.EmitterDirection = D3DXVECTOR3:new(0,0,0)
  16. Emitter.EmitterLifeTime = 1
  17.  
  18. PT = Emitter.ParticleTypesParams[1]
  19. PT.IsEmitterLocked = false
  20. PT.DrawOrder = 2
  21. PT.Material = ENMAT_PARTICLE_LIGHT
  22.  
  23.  
  24. PT.TextureName = "environment_effect_explosion_sparkles1.dds"
  25.  
  26. PT.ParticlesPerSecond = 20.0;
  27. PT.InitialNumberOfParticles = 10.0;
  28. PT.BaseLifeTime = 0.6;
  29. PT.BaseLifeTimeVariance = 0.3;
  30. PT.BaseSpeed = 50.0;
  31. PT.BaseSpeedVariance = 0.0;
  32. PT.BaseAngle = 3.0;
  33. PT.BaseAngleVariance = 0.4;
  34. PT.BaseAngleSpeed = 0.0;
  35. PT.BaseAngleSpeedVariance = 0.0;
  36. PT.BaseAngleSpeedDirection = 0;
  37. PT.BaseDirection = D3DXVECTOR3:new(0.0,0.0,1.0);
  38. PT.BaseDirectionVariance = D3DXVECTOR3:new(0.0,0.0,0.0);
  39. PT.BasePosition = D3DXVECTOR3:new(0,0,0);
  40. PT.BasePositionVariance = D3DXVECTOR3:new(0,0,6);
  41. PT.BaseSize = 4.0;
  42. PT.BaseSizeVariance = 0.4;
  43.  
  44. -- color over time
  45. PT.ColorOverTimeR[1].TimePercent = 0.0;
  46. PT.ColorOverTimeR[1].Value = 0.5;
  47. PT.ColorOverTimeG[1].TimePercent = 0.0;
  48. PT.ColorOverTimeG[1].Value = 0.5;
  49. PT.ColorOverTimeB[1].TimePercent = 0.0;
  50. PT.ColorOverTimeB[1].Value = 0.5;
  51.  
  52. PT.ColorOverTimeR[2].TimePercent = 1.0;
  53. PT.ColorOverTimeR[2].Value = 0.5;
  54. PT.ColorOverTimeG[2].TimePercent = 1.0;
  55. PT.ColorOverTimeG[2].Value = 0.5;
  56. PT.ColorOverTimeB[2].TimePercent = 1.0;
  57. PT.ColorOverTimeB[2].Value = 0.5;
  58.  
  59. -- transparency over time
  60. PT.TransparencyOverTime[1].TimePercent = 0.0;
  61. PT.TransparencyOverTime[1].Value = 0.0;
  62.  
  63. PT.TransparencyOverTime[2].TimePercent = 0.03;
  64. PT.TransparencyOverTime[2].Value = 0.1;
  65.  
  66. PT.TransparencyOverTime[3].TimePercent = 1.0;
  67. PT.TransparencyOverTime[3].Value = 0.0;
  68.  
  69.  
  70. -- size over time
  71. PT.SizeOverTime[1].TimePercent = 0.0;
  72. PT.SizeOverTime[1].Value = 3.0;
  73.  
  74. PT.SizeOverTime[2].TimePercent = 0.2;
  75. PT.SizeOverTime[2].Value = 12.0;
  76.  
  77. PT.SizeOverTime[3].TimePercent = 1.0;
  78. PT.SizeOverTime[3].Value = 3.0;
  79.  
  80.  
  81. -- Speed over time
  82. PT.SpeedOverTime[1].TimePercent = 0.0;
  83. PT.SpeedOverTime[1].Value = 1.0;
  84.  
  85. PT.SpeedOverTime[2].TimePercent = 1.0;
  86. PT.SpeedOverTime[2].Value = 0.0;
  87.  
  88. -- Tangent Speed over time
  89. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  90. PT.TangentSpeedOverTime[1].Value = 0.0;
  91.  
  92. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  93. PT.TangentSpeedOverTime[2].Value = 0.0;
  94.  
  95.  
  96. -- GravityAcceleration over time
  97. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  98. PT.GravityAccelerationOverTime[1].Value = 0.0;
  99.  
  100. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  101. PT.GravityAccelerationOverTime[2].Value = 0.0;
  102.  
  103. -- AngleSpeed over time
  104. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  105. PT.AngleSpeedOverTime[1].Value = 1.0;
  106.  
  107. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  108. PT.AngleSpeedOverTime[2].Value = 0.0;
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127. PT = Emitter.ParticleTypesParams[2]
  128. PT.IsEmitterLocked = false
  129. PT.DrawOrder = 1
  130. PT.Material = ENMAT_SIMPLEPARTICLE
  131.  
  132.  
  133. PT.TextureName = "environment_effect_explosion_smoke6.dds"
  134.  
  135. PT.ParticlesPerSecond = 20.0;
  136. PT.InitialNumberOfParticles = 0.0;
  137. PT.BaseLifeTime = 1.5;
  138. PT.BaseLifeTimeVariance = 0.3;
  139. PT.BaseSpeed = 2.0;
  140. PT.BaseSpeedVariance = 0.0;
  141. PT.BaseAngle = 3.0;
  142. PT.BaseAngleVariance = 5.0;
  143. PT.BaseAngleSpeed = 0.3;
  144. PT.BaseAngleSpeedVariance = 0.3;
  145. PT.BaseAngleSpeedDirection = 0;
  146. PT.BaseDirection = D3DXVECTOR3:new(0.0,0.0,0.0);
  147. PT.BaseDirectionVariance = D3DXVECTOR3:new(0.0,0.0,0.0);
  148. PT.BasePosition = D3DXVECTOR3:new(0,0,5);
  149. PT.BasePositionVariance = D3DXVECTOR3:new(2,2,15);
  150. PT.BaseSize = 5.0;
  151. PT.BaseSizeVariance = 0.8;
  152.  
  153. -- color over time
  154. PT.ColorOverTimeR[1].TimePercent = 0.0;
  155. PT.ColorOverTimeR[1].Value = 0.5;
  156. PT.ColorOverTimeG[1].TimePercent = 0.0;
  157. PT.ColorOverTimeG[1].Value = 0.5;
  158. PT.ColorOverTimeB[1].TimePercent = 0.0;
  159. PT.ColorOverTimeB[1].Value = 0.5;
  160.  
  161. PT.ColorOverTimeR[2].TimePercent = 1.0;
  162. PT.ColorOverTimeR[2].Value = 0.5;
  163. PT.ColorOverTimeG[2].TimePercent = 1.0;
  164. PT.ColorOverTimeG[2].Value = 0.5;
  165. PT.ColorOverTimeB[2].TimePercent = 1.0;
  166. PT.ColorOverTimeB[2].Value = 0.5;
  167.  
  168. -- transparency over time
  169. PT.TransparencyOverTime[1].TimePercent = 0.0;
  170. PT.TransparencyOverTime[1].Value = 0.0;
  171.  
  172. PT.TransparencyOverTime[2].TimePercent = 0.2;
  173. PT.TransparencyOverTime[2].Value = 0.5;
  174.  
  175. PT.TransparencyOverTime[3].TimePercent = 1.0;
  176. PT.TransparencyOverTime[3].Value = 0.0;
  177.  
  178.  
  179. -- size over time
  180. PT.SizeOverTime[1].TimePercent = 0.0;
  181. PT.SizeOverTime[1].Value = 2.0;
  182.  
  183. PT.SizeOverTime[2].TimePercent = 0.1;
  184. PT.SizeOverTime[2].Value = 7.0;
  185.  
  186. PT.SizeOverTime[3].TimePercent = 1.0;
  187. PT.SizeOverTime[3].Value = 10.0;
  188.  
  189.  
  190. -- Speed over time
  191. PT.SpeedOverTime[1].TimePercent = 0.0;
  192. PT.SpeedOverTime[1].Value = 4.0;
  193.  
  194. PT.SpeedOverTime[2].TimePercent = 1.0;
  195. PT.SpeedOverTime[2].Value = 0.0;
  196.  
  197. -- Tangent Speed over time
  198. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  199. PT.TangentSpeedOverTime[1].Value = 0.0;
  200.  
  201. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  202. PT.TangentSpeedOverTime[2].Value = 0.0;
  203.  
  204.  
  205. -- GravityAcceleration over time
  206. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  207. PT.GravityAccelerationOverTime[1].Value = 0.0;
  208.  
  209. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  210. PT.GravityAccelerationOverTime[2].Value = 0.0;
  211.  
  212. -- AngleSpeed over time
  213. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  214. PT.AngleSpeedOverTime[1].Value = 0.0;
  215.  
  216. PT.AngleSpeedOverTime[2].TimePercent = 0.6;
  217. PT.AngleSpeedOverTime[2].Value = 1.0;
  218.  
  219. PT.AngleSpeedOverTime[3].TimePercent = 1.0;
  220. PT.AngleSpeedOverTime[3].Value = 0.0;
  221.  
  222.  
  223.  
  224.  
  225. --
  226. -- end particle system description
  227. --
  228.